import request from '@/utils/request'

// 查询冻结记录列表
export function listFreezeRecord(query) {
  return request({
    url: '/system/freeze/list',
    method: 'get',
    params: query
  })
}

// 查询冻结记录详细
export function getFreezeRecord(freezeId) {
  return request({
    url: '/system/freeze/' + freezeId,
    method: 'get'
  })
}

// 导出冻结记录
export function exportFreezeRecord(query) {
  return request({
    url: '/system/freeze/export',
    method: 'get',
    params: query
  })
} 

// 导出冻结记录
export function deleteFreezeRecord(freezeId) {
  return request({
    url: '/system/freeze/' + freezeId,
    method: 'delete'
  })
} 

// 统计冻结数据
export function totalFreezeRecord(startTime,endTime) {
  return request({
    url: '/system/freeze/totalFreezeRecord',
    method: 'get',
    params: 
    {
      startTime: startTime,
      endTime: endTime
    }
  })
} 
